package com.lmt.api;

import com.lmt.base.ResultData;
import com.lmt.entity.search.LoginLogSearch;
import com.lmt.service.LoginLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Date 2018/07/17
 *
 * @author MT-Lin
 */
@RestController
@RequestMapping("/LoginLogApi")
public class LoginLogApi {

	private final LoginLogService loginLogService;

	@Autowired
	public LoginLogApi(LoginLogService loginLogService) {
		this.loginLogService = loginLogService;
	}

	@RequestMapping("/search")
	public ResultData search(@RequestBody LoginLogSearch loginLogSearch) {
		return this.loginLogService.search(loginLogSearch);
	}
}
